package com.abaaba.project2.controller;

import com.abaaba.project2.bean.GoodsDataSendingListBaseReq;
import com.abaaba.project2.bean.bo.AdminGoodsDeleteShoppingInformationBO;
import com.abaaba.project2.bean.vo.*;
import com.abaaba.project2.service.AdminGoodsService;
import com.abaaba.project2.service.AdminOrderService;
import com.abaaba.project2.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/stat")
public class AdminUserStatisticsController {

    @Autowired
    AdminUserService adminUserService;

    @RequestMapping("user")
    public AdminUserStatisticsVO userNumberCountList(){
        // GoodsDataSendingListVO goodsDataSendingListVO = new GoodsDataSendingListVO();
        AdminUserStatisticsVO adminUserStatisticsVO = adminUserService.userNumberSearchAllCount();
        return adminUserStatisticsVO;
    }

    @Autowired
    AdminOrderService adminOrderService;

    @RequestMapping("order")
    public AdminOrderStatisticsVO OrderNumberCountList(){
        // GoodsDataSendingListVO goodsDataSendingListVO = new GoodsDataSendingListVO();
        AdminOrderStatisticsVO adminOrderStatisticsVO = adminOrderService.OrderNumberSearchAllCount();
        return adminOrderStatisticsVO;
    }

    @Autowired
    AdminGoodsService adminGoodsService;

    @RequestMapping("goods")
    public AdminGoodsStatisticsVO goodsNumberCountList(){
        // GoodsDataSendingListVO goodsDataSendingListVO = new GoodsDataSendingListVO();
        AdminGoodsStatisticsVO adminGoodsStatisticsVO = adminOrderService.goodsNumberSearchAllCount();
        return adminGoodsStatisticsVO;
    }



}
